package com.ufenlei.LTS {
	import com.ufenlei.LTS.RadioGroup;
	
	/**
	 * @author bbn
	 * @category LTS
	 */
	public class TestingGroupList extends RadioGroup {
		private var TGList:Array = new Array();
		public function TestingGroupList(de : Boolean = false, lck : Boolean = false) {
			super(de, lck);
		}
		public function add(tg:TestingGroup,tgIndex:uint):void{
			this.TGList.push(tg);
			addRadio(tg.title, tgIndex);
		}
		override public function addRadio(rLabel:String,rIdx:int):void{
			var op:TestingGroupRadio = new TestingGroupRadio(rLabel,_radioList.length);
			op.addEventListener(Input.SELECTED, onRadioSelected);
			_radioList.push(op);
			_keyList.push(rIdx);
			this.addChild(op);
			var oph:int = Math.max(op.getBounds(this).bottom, 0);
			op.y = this._bottom;
			this._bottom += oph + 5;
		}
	}
}